{extends file="layout.tpl"}
{block name=title} {$categories[$category]} {/block}
{block name=body}

<div id= "create_incident"><a href="new_incident.php"> Got a nit to pick? </a></div>
<fieldset id= "view_all_field">
<h2> {$categories[$category]} </h2>
<ul>

{foreach from=$incidents item=incident}

					<li> <a href="view_incident.php?incident_id={$incident['incident_id']}" > {$incident['incident_title']} </a> <span class="rating">  {$incident["rating"]} </span> 
				{if $is_logged_in and not $incident['is_rated'] and not $incident['is_created']} <a class= "plus_one"  data-incident_id={$incident['incident_id']} href="#" > + 1</a> 
				{/if}

					</li>
					{/foreach}
</ul>					
</fieldset>
{/block}
